package kr.saeildamil.androidStudy_second.fragment;

import kr.saeildamil.androidStudy_second.R;
import kr.saeildamil.androidStudy_second.fragment.common.WordListFragment.OnWordChangedListener;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class WordListFragmentTest extends Activity implements
		OnWordChangedListener {
	TextView wordDesc;
	String[] details;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch20_wordlistfragment);
		wordDesc = (TextView) findViewById(R.id.ch20_wordlist_desc);
		details = getResources().getStringArray(R.array.desc);
	}

	@Override
	public void onWordChanged(int index) {
		wordDesc.setText(details[index]);
	}
}
